from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager, Shell
from info import db, create_app
from info import models


app = create_app('developement')

# flask-script
manager = Manager(app)
# 数据库迁移
migrate = Migrate(app, db)
manager.add_command("db", MigrateCommand)





if __name__ == '__main__':
    manager.run()
